package model;

/**
 * Created by yvdedu.com on 2016/9/22.
 */
public class Book {
    private int id;
    private String name;
    private String author;
    private String intro;
    private String image;
    private String type;
    private String time;
    private int click;
    private int score;

    public Book(int id, String name, String author, String intro, String image, String type, String time, int click, int score) {
        this.id = id;
        this.name = name;
        this.author = author;
        this.intro = intro;
        this.image = image;
        this.type = type;
        this.time = time;
        this.click = click;
        this.score = score;
    }

    public int getId() {
        return id;
    }

    public String getName() {
        return name;
    }

    public String getAuthor() {
        return author;
    }

    public String getIntro() {
        return intro;
    }

    public String getImage() {
        return image;
    }

    public String getType() {
        return type;
    }

    public String getTime() {
        return time;
    }

    public int getClick() {
        return click;
    }

    public int getScore() {
        return score;
    }

    public void setId(int id) {
        this.id = id;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public void setIntro(String intro) {
        this.intro = intro;
    }

    public void setImage(String image) {
        this.image = image;
    }

    public void setType(String type) {
        this.type = type;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public void setClick(int click) {
        this.click = click;
    }

    public void setScore(int score) {
        this.score = score;
    }

    @Override
    public String toString() {
        return "Book{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", author='" + author + '\'' +
                ", intro='" + intro + '\'' +
                ", image='" + image + '\'' +
                ", type='" + type + '\'' +
                ", time='" + time + '\'' +
                ", click=" + click +
                ", score=" + score +
                '}';
    }
}

